package cn.wolfcode.car.domain;

import cn.wolfcode.car.utils.JsonUtil;
import lombok.*;

import java.math.BigDecimal;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Salary {

    private Long id;

    private BigDecimal money;

    private Integer month;

    private BigDecimal subsidy;

    private BigDecimal deduct;

    private BigDecimal check;

    private BigDecimal insurance;

    private BigDecimal payroll;

    private Integer year;

    //private Long employeeId;
    private Employee employee;

    private SystemDictionaryItem systemDictionaryItem;
    //private Long payoutId;

    public Object getJson() {
        return JsonUtil.objToJson(this, Salary.class);
    }

}